1 <?php include ( "inc/connect.inc.php" ); ?>
2 <?php
3 ob_start();
4 session_start();

5 if
(!isset($_SESSION['user_login'])) {
6     $user =
"";
7 }

8 else
{
9     $user = $_SESSION[
'user_login'];
10     $result = mysql_query(
"SELECT * FROM user WHERE id='$user'");
11         $get_user_email = mysql_fetch_assoc($result);
12             $uname_db = $get_user_email[
'firstName'];
13 }
14 ?>
15 <!DOCTYPE html>
16 <html>
17     <head>
18         <title>Welcome to ebuybd online shop</title>
19         <link rel=
"stylesheet" type="text/css" href="css/style.css">
20         <meta name=
"viewport" content="width=device-width, initial-scale=1">
21         <link rel=
"stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
22         <script src=
"/js/homeslideshow.js"></script>
23     </head>
24     <body style=
"min-width: 980px;">
25         <div
class="homepageheader" style="position: relative;">
26             <div
class="signinButton loginButton">
27                 <div
class="uiloginbutton signinButton loginButton" style="margin-right: 40px;">
28                     <?php
29                         
if ($user!="") {
30                             echo
'<a style="text-decoration: none; color: #fff;" href="logout.php">LOG OUT</a>';
31                         }
32                         
else {
33                             echo
'<a style="color: #fff; text-decoration: none;" href="signin.php">SIGN IN</a>';
34                         }
35                      ?>
36                     
37                 </div>
38                 <div
class="uiloginbutton signinButton loginButton" style="">
39                     <?php
40                         
if ($user!="") {
41                             echo
'<a style="text-decoration: none; color: #fff;" href="profile.php?uid='.$user.'">Hi '.$uname_db.'</a>';
42                         }
43                         
else {
44                             echo
'<a style="text-decoration: none; color: #fff;" href="login.php">LOG IN</a>';
45                         }
46                      ?>
47                 </div>
48             </div>
49             <div style=
"float: left; margin: 5px 0px 0px 23px;">
50                 <a href=
"index.php">
51                     <img style=
" height: 75px; width: 130px;" src="image/ebuybdlogo.png">
52                 </a>
53             </div>
54             <div
class="">
55                 <div id=
"srcheader">
56                     <form id=
"newsearch" method="get" action="search.php">
57                             <input type=
"text" class="srctextinput" name="keywords" size="21" maxlength="120" placeholder="Search Here..."><input type="submit" value="search" class="srcbutton" >
58                     </form>
59                 <div
class="srcclear"></div>
60                 </div>
61             </div>
62         </div>
63         <div
class="home-welcome">
64             <div
class="home-welcome-text" style="background-image: url(image/homebackgrndimg.png); height: 380px; ">
65                 <h1 style=
"margin: 0px;">Welcome To eBuyBD</h1>
66                 <h2>Largest Online Shopping In Bangladesh</h2>
67             </div>
68         </div>
69         <div
class="home-prodlist">
70             <div>
71                 <h3 style=
"text-align: center;">Products Category</h3>
72             </div>
73             <div style=
"padding: 20px 30px; width: 85%; margin: 0 auto;">
74                 <ul style=
"float: left;">
75                     <li style=
"float: left; padding: 25px;">
76                         <div
class="home-prodlist-img"><a href="women/saree.php">
77                             <img src=
"./image/product/saree/new-designer-fancy-look-attractive-saree-2-original.jpg" class="home-prodlist-imgi">
78                             </a>
79                         </div>
80                     </li>
81                 </ul>
82                 <ul style=
"float: left;">
83                     <li style=
"float: left; padding: 25px;">
84                         <div
class="home-prodlist-img"><a href="women/perfume.php">
85                             <img src=
"./image/product/perfume/Most-Popular-Perfumes-for-Women10.png" class="home-prodlist-imgi">
86                             </a>
87                         </div>
88                     </li>
89                 </ul>
90                 <ul style=
"float: left;">
91                     <li style=
"float: left; padding: 25px;">
92                         <div
class="home-prodlist-img"><a href="women/hijab.php">
93                             <img src=
"./image/product/saree/hijab 1.png" class="home-prodlist-imgi"></a>
94                         </div>
95                     </li>
96                 </ul>
97                 <ul style=
"float: left;">
98                     <li style=
"float: left; padding: 25px;">
99                         <div
class="home-prodlist-img"><a href="women/toilatry.php">
100                             <img src=
"./image/product/beauty/toiletries.png" class="home-prodlist-imgi"></a>
101                         </div>
102                     </li>
103                 </ul>
104                 <ul style=
"float: left;">
105                     <li style=
"float: left; padding: 25px;">
106                         <div
class="home-prodlist-img"><a href="women/footwear.php">
107                             <img src=
"./image/product/footwear/footwear1.png" class="home-prodlist-imgi"></a>
108                         </div>
109                     </li>
110                 </ul>
111                 <ul style=
"float: left;">
112                     <li style=
"float: left; padding: 25px;">
113                         <div
class="home-prodlist-img"><a href="women/tshirt.php">
114                             <img src=
"./image/product/saree/tshirts1.png" class="home-prodlist-imgi"></a>
115                         </div>
116                     </li>
117                 </ul>
118                 <ul style=
"float: left;">
119                     <li style=
"float: left; padding: 25px;">
120                         <div
class="home-prodlist-img"><a href="women/watch.php">
121                             <img src=
"./image/product/watch/watches1.png" class="home-prodlist-imgi"></a>
122                         </div>
123                     </li>
124                 </ul>
125                 <ul style=
"float: left;">
126                     <li style=
"float: left; padding: 25px;">
127                         <div
class="home-prodlist-img"><a href="women/ornament.php">
128                             <img src=
"./image/product/ornament/earrings1.png" class="home-prodlist-imgi"></a>
129                         </div>
130                     </li>
131                 </ul>
132             </div>
133         </div>
134     </body>
135 </html>


Gõ tìm kiếm nhanh...